#include <iostream>
#include <list>
template <typename T>
class Compare{
private:
T _standard;
public:
Compare(const T& N):_standard(N) {}
bool operator()(const T& N){
return N>=_standard;
}
};
int main(void){
std::list<int> list=std::list<int>();
list.push_back(10);
list.push_back(100);
list.push_back(5);
list.push_back(4);
list.push_back(70);
list.push_back(20);
list.remove_if(Compare<int>(10));
for(auto i: list){
std::cout<<i<<std::endl;
}
return 0;
}